<template>
  <el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
    <el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
      <el-form-item label="编码">
        <el-input v-model="form.code" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="名称">
        <el-input v-model="form.name" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售体系类型(1:默认)">
        <el-input v-model="form.type" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="价格套id">
        <el-input v-model="form.priceSuitId" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="价格套编码">
        <el-input v-model="form.priceSuitCode" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="价格套名称">
        <el-input v-model="form.priceSuitName" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售取价(1:默认取价方式 2:优先最近订单价 3:优先最近发货价 4:优先最近回单价)">
        <el-input v-model="form.saleSystem" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售退货取价(1:默认取价方式 2:优先最近发货价 3:优先最近回单价 4:优先最近一段时间最低发货价 5:优先最近一段时间最低回单价)">
        <el-input v-model="form.saleReturnSystem" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售退货取价时间设置(月)" prop="saleReturnSystemTime">
        <el-input v-model="form.saleReturnSystemTime" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售退货历史检查时间(月)" prop="saleReturnSystemHisCheckTime">
        <el-input v-model="form.saleReturnSystemHisCheckTime" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售订单审核超账期控制(1:按客户 2:按商场 3:按总店)">
        <el-input v-model="form.saleOrderPassOverDateLimit" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售订单审核零金额审核限制(0:否 1:是)">
        <el-input v-model="form.saleOrderPassZeroAmountLimit" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="销售订单审核现金客户余额限制(0:否 1:是)">
        <el-input v-model="form.saleOrderPassCashCustomerBalanceLimit" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="发货单审核后销售回单自动审核(0:否 1:是)">
        <el-input v-model="form.saleDeliveryReceiptAutoPass" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="退货入库单审核后退货单自动审核(0:否 1:是)">
        <el-input v-model="form.saleReturnReceiptAutoPass" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="排序">
        <el-input v-model="form.seq" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="状态(0:禁用 1:启用)">
        <el-input v-model="form.status" style="width: 370px;" />
      </el-form-item>
      <el-form-item label="备注">
        <el-input v-model="form.remark" style="width: 370px;" />
      </el-form-item>

    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button type="text" @click="crud.cancelCU">取消</el-button>
      <el-button :loading="crud.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
    </div>
  </el-dialog>

</template>

<script>
export default {
  name: "detail"
}
</script>

<style scoped>

</style>
